Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix issues when canceling and unadvertising actions #896

Merged
merged 3 commits into from
Dec 14, 2023

Conversation

sea-bass
Copy link
Contributor

@sea-bass sea-bass commented Dec 11, 2023

I found a segfault in Humble described in ros2/rclcpp#2163 (comment) with destroying action servers while an executor is processing something.

For now, this simple change resolves the issue.


I also added a cancellation callback to the ROS 2 action servers that get created on advertise, which properly aborts the future that is created when first executing the goal.

@sea-bass sea-bass changed the title Do not destroy action servers when unadvertising action Fix issues when canceling and unadvertising actions Dec 13, 2023
Copy link
Contributor

@EzraBrooks EzraBrooks left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not destroying the action server feels sketchy, but hopefully we'll circle back to this once the bug in RCL is fixed.

@sea-bass
Copy link
Contributor Author

Not destroying the action server feels sketchy, but hopefully we'll circle back to this once the bug in RCL is fixed.

Yeah, this is why I kept a comment with the segfault when normally I would have just deleted that line.

@sea-bass sea-bass merged commit 412edaa into ros2 Dec 14, 2023
8 checks passed
@sea-bass sea-bass deleted the do-not-destroy-action-server branch December 14, 2023 20:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants